package com.czg.jsonschema2lombokpojo.util;

import com.sun.codemodel.JAnnotationArrayMember;
import com.sun.codemodel.JAnnotationUse;
import com.sun.codemodel.JMethod;

public class Models {

    public static void suppressWarnings(JMethod method, String... values) {
        JAnnotationUse annotation = method.annotate(SuppressWarnings.class);
        JAnnotationArrayMember member = annotation.paramArray("value");
        for( String value : values ) {
            member.param(value);
        }
    }

}
